Skip to content

Fixed Slashcommand-Metrics missing subcommands#1434

Merged
Zabuzard merged 1 commit intodevelopfrom
bugfix/metrics_slash_subcommand
Mar 12, 2026
Merged

Fixed Slashcommand-Metrics missing subcommands#1434
Zabuzard merged 1 commit intodevelopfrom
bugfix/metrics_slash_subcommand

Conversation

@Zabuzard
Copy link
Member

The metrics.count("slash-" + ...) code was forgetting about subcommands, such as /help-thread close. It only put the name of the slash command itself into the events, e.g. /help-thread.

This PR fixes the problem.

demo

@Zabuzard Zabuzard self-assigned this Mar 11, 2026
@Zabuzard Zabuzard requested a review from a team as a code owner March 11, 2026 12:19
@sonarqubecloud
Copy link

Copy link
Contributor

@firasrg firasrg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing this out. I wasn’t aware of subcommands, and this fix should take them into account i guess

@Zabuzard Zabuzard added bug Something isn't working priority: major labels Mar 11, 2026
@Zabuzard Zabuzard merged commit 5d819b3 into develop Mar 12, 2026
11 checks passed
@Zabuzard Zabuzard deleted the bugfix/metrics_slash_subcommand branch March 12, 2026 10:12
@Zabuzard Zabuzard mentioned this pull request Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority: major

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants